Skip to content

Post-robustness follow-ups#25

Merged
aksOps merged 1 commit into
mainfrom
chore/post-robustness-followups
Apr 24, 2026
Merged

Post-robustness follow-ups#25
aksOps merged 1 commit into
mainfrom
chore/post-robustness-followups

Conversation

@aksOps

@aksOps aksOps commented Apr 23, 2026

Copy link
Copy Markdown
Contributor

Summary

Small hygiene pass picking up the deferred follow-ups from PR #24.

  • .gitignore: exclude /bin, /loadsim, /otelcontext build artifacts
  • GraphRAG cooldown: canonicalize (trigger_service, root_service, root_operation) with strings.ToLower + TrimSpace before hashing — without it, "Orders" and "orders " were bypassing the 5-minute guard
  • GraphRAG cleanup: consolidate three time.Now() calls in PersistInvestigation to one now := time.Now() at the top
  • GraphRAG/refresh: document that the 10m cooldown-prune cutoff assumes RefreshEvery ≤ 10m — raising one without the other would re-introduce the bypass
  • Storage tests: remove dead verifyP99Index helper + now-unused math import

Test plan

  • go build ./... clean
  • go vet ./... clean
  • CGO_ENABLED=1 go test -race -timeout 180s ./... — 10/10 packages pass
  • New TestCooldownKey_Canonical covers case/whitespace variants

Not addressed here

  • StartRuntimeMetrics goroutine stop channel — pre-existing; deferred
  • sqliteP99RowCap as atomic.Int64 — hypothetical race not triggered by current tests
  • .env.example — tracked separately

🤖 Generated with Claude Code

- .gitignore: exclude build artifacts (/bin, /loadsim, /otelcontext)
- graphrag: canonicalize investigation cooldown key (lower + trim) so
  "Orders" / "orders " / "ORDERS" share a bucket; otherwise trivial
  casing differences would bypass the cooldown guard
- graphrag: consolidate time.Now() calls in PersistInvestigation to a
  single now := time.Now() at the top
- graphrag/refresh.go: spell out the cooldown-prune cutoff's dependency
  on RefreshEvery to keep future tuning honest
- storage: delete dead verifyP99Index helper and math import in
  metrics_p99_test.go

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@sonarqubecloud

Copy link
Copy Markdown

@aksOps aksOps merged commit fb85486 into main Apr 24, 2026
10 checks passed
@aksOps aksOps deleted the chore/post-robustness-followups branch April 26, 2026 05:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant